<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>任务记录网站</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <header>
        <h1>任务记录</h1>
        <p>高效管理您的日常任务</p>
    </header>

    <main>
        <section class="task-form">
            <h2>添加新任务</h2>
            <form id="addTaskForm">
                <div class="form-group">
                    <label for="taskTitle">任务标题</label>
                    <input type="text" id="taskTitle" required placeholder="输入任务标题">
                </div>
                <div class="form-group">
                    <label for="taskDescription">任务描述</label>
                    <textarea id="taskDescription" placeholder="输入任务详细描述"></textarea>
                </div>
                <div class="form-group">
                    <label for="taskPriority">优先级</label>
                    <select id="taskPriority">
                        <option value="low">低</option>
                        <option value="medium" selected>中</option>
                        <option value="high">高</option>
                    </select>
                </div>
                <div class="form-group">
                    <label for="taskDueDate">截止日期</label>
                    <input type="date" id="taskDueDate">
                </div>
                <button type="submit">添加任务</button>
            </form>
        </section>

        <section class="task-controls">
            <h2>任务列表</h2>
            <div class="filters">
                <button class="filter-btn active" data-filter="all">全部</button>
                <button class="filter-btn" data-filter="active">待完成</button>
                <button class="filter-btn" data-filter="completed">已完成</button>
            </div>
        </section>

        <section class="tasks-container" id="tasksContainer">
            <!-- 任务将通过JavaScript动态添加 -->
        </section>
    </main>

    <footer>
        <p>&copy; 2023 任务记录网站 | 已完成任务: <span id="completedCount">0</span></p>
    </footer>

    <script src="script.js"></script>
</body>
</html>